package dao;

import model.ShopCar;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @aythor:侯仪澳
 * @data:2022/8/4
 */
public interface IShopCarDao {

    //添加到购物车
    public int addOneGoodsToCar(ShopCar shopCar);
    //queryShopCar查询购物车
    public List<ShopCar> queryShopCar(ShopCar shopCar);
    //queryShopCar查询购物车是否存在
    public ShopCar queryShopCarExist(ShopCar shopCar);
    //删除购物车的商品
    public int deleteShopCar(@Param("id") Integer id);
    //若购物车里存在该商品，数量加到原来商品的数量之上
    public int updateShopCar(ShopCar shopCar);
}
